package com.yuqiao.read.design.command;

/**
 * 一个简单的遥控器
 */
public class SimpleRemoteController {
    private Command solt;//插槽
    public SimpleRemoteController(){

    }


    public void setCommand(Command command){
        this.solt = command;
    }

    public void buttonWasPressed(){
        solt.execute();
    }
}
